Skip to content

Comments

Commit rebelde#3

Merged
tuxtor merged 2 commits intomainfrom
feature/barranquilla
Oct 25, 2025
Merged

Commit rebelde#3
tuxtor merged 2 commits intomainfrom
feature/barranquilla

Conversation

@tuxtor
Copy link
Owner

@tuxtor tuxtor commented Oct 25, 2025

This pull request introduces two minor changes to the GreetingResource class, primarily adding unused local variables to demonstrate poor programming practices for a SpotBugs demo.

  • Added unused local variables test and test2 in the hello and doSpotBugsDemo methods to illustrate code quality issues for SpotBugs demonstration purposes.

@tuxtor tuxtor requested a review from Copilot October 25, 2025 21:49
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@tuxtor tuxtor requested a review from Copilot October 25, 2025 21:50
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@GET
@Produces(MediaType.TEXT_PLAIN)
public String hello() {
var test = doSpotBugsDemo();
Copy link

Copilot AI Oct 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The local variable test is assigned but never used. Remove this variable or utilize its value in the method logic.

Suggested change
var test = doSpotBugsDemo();

Copilot uses AI. Check for mistakes.

private String doSpotBugsDemo(){
private String doSpotBugsDemo() {
var test2 = "Esta es una pesima forma de programar";
Copy link

Copilot AI Oct 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The local variable test2 is assigned but never used. Remove this variable or utilize its value in the method logic.

Suggested change
var test2 = "Esta es una pesima forma de programar";

Copilot uses AI. Check for mistakes.

private String doSpotBugsDemo(){
private String doSpotBugsDemo() {
var test2 = "Esta es una pesima forma de programar";
Copy link

Copilot AI Oct 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected spelling of 'pesima' to 'pésima' (missing accent mark in Spanish).

Suggested change
var test2 = "Esta es una pesima forma de programar";
var test2 = "Esta es una pésima forma de programar";

Copilot uses AI. Check for mistakes.
@tuxtor tuxtor merged commit efdc5b2 into main Oct 25, 2025
2 checks passed
@tuxtor tuxtor deleted the feature/barranquilla branch December 12, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant